package io.geekidea.boot.viptype.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.geekidea.boot.area.mapper.AreaMapper;
import io.geekidea.boot.viptype.entity.Viptype;
import io.geekidea.boot.viptype.mapper.ViptypeMapper;
import io.geekidea.boot.viptype.service.ViptypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class ViptypeServiceImpl extends ServiceImpl<ViptypeMapper, Viptype> implements ViptypeService {

    @Resource
    private ViptypeMapper viptypeMapper;

    @Override
    public Boolean delById(Integer id) {
        return viptypeMapper.delByIdInt(id)>0;
    }
}
